package blancosMikel.model.config;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Servlet implementation class StartUP
 */
@WebServlet(description = "clase que carga al iniciar el server", loadOnStartup=0, urlPatterns = { "/StartUP" })
public class StartUP extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    @SuppressWarnings("unused")
	public StartUP() {
    	System.out.println("START-UP..................Arrancando servicios");
    	serviceLocator service= serviceLocator.getInstance();
    	System.out.println("--->Sistema Arrancado con exito");   
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	}

}
